<template>
    <div class="vipgrade">
        <!-- <navBar class="bar" :title="title"></navBar> -->
        <h3 class="title">晋升规则</h3>
        <div class="header"></div>
        <div class="rules">
            <li class="item" v-for="(item, index) in rules" :key="index">
                <img :src="item.img" >
                <p class="tip">{{item.name}}</p>
            </li>
        </div>
        <div class="rules_text">
            <h3 class="rule_title">晋升规则</h3>
            <ul class="list">
                <li v-for="(item, index) in rule" :key="index">{{item}}</li>
            </ul>
        </div>
        <div class="bottom">
            <div class="tip">还需
                <a class="hightlight">￥390.00升级黄金会员</a>
            </div>
            <router-link class="tobtn" to="/">去消费</router-link>
        </div>
    </div>
</template>

<style lang="less" scoped>
.vipgrade{
    width: 100%;
    height: 100%;
    position: relative;
    .bar{
        background: transparent;
    }
    li{
        list-style: none;
    }
    .title{
        color: #E9BA7F;
        font-size: 22px;
        font-weight: bold;
        position: absolute;
        width: 100%;
        text-align: center;
        margin-top: 68px;
    }
    .header{
        height: 195px;
        width: 100%;
        background: url('/img/vip/1.png');
        background-repeat: no-repeat;
        background-size: contain;
    }
    .rules{
        margin-top: 50px;
        height: 60px;
        width: 100%;
        display: flex;
        justify-content: space-around;
        .item{
            text-align: center;
            img{
                width: 36px;
                height: 37px;
            }
            .tip{
                height: 12px;
                margin-top: 11px;
                color: #7B6657;
                font-size: 12px;
            }
        }
        
    }
    .rules_text{
        box-sizing: border-box;
        background: #FCF2DF;
        width: 358px;
        margin: 30px auto;
        padding: 17px 15px;
        color: #7B6657;
        border-radius: 6px;
        .rule_title{            
            font-size: 24px;
            margin: 0;
            padding: 0;
            margin-bottom: 8px;
        }
        .list{
            font-size: 14px;
            line-height: 1.5;
        }
    }
    .bottom{
        .tip{
            color: #333;
            font-size: 15px;
            width: 100%;
            text-align: center;
            .hightlight{
                color: #E9BA7F;
            }
        }
        .tobtn{
            display: block;
            background: #012F40;
            color: #FFF;
            height: 45px;
            line-height: 45px;
            text-align: center;
            width: 345px;
            margin: 20px auto;
            font-size: 24px;
        }
    }
}
</style>

<script>
import navBar from "components/navBar";
export default {
    name: 'vipgrade',
    data(){
        return {
            title: '晋升规则',
            rules: [
                {
                    name: '普通会员',
                    img: '/img/vip/2.png'
                },
                {
                    name: '青铜会员',
                    img: '/img/vip/3.png'
                },
                {
                    name: '白银会员',
                    img: '/img/vip/4.png'
                },
                {
                    name: '黄金会员',
                    img: '/img/vip/5.png'
                },
                {
                    name: '钻石会员',
                    img: '/img/vip/6.png'
                },
            ],
            rule: [
                '1.会员参与消费可获得晋升',
                '2.会员参与消费可获得晋升',
                '3.会员参与消费可获得晋升',
                '4.会员参与消费可获得晋升',
                '5.会员参与消费可获得晋升',
            ]
        }
    },
    methods:{

    },
    components:{
        navBar
    }
}
</script>
